package com.capgemini.teamtwo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.capgemini.teamtwo.entity.ProjectMember;
import com.capgemini.teamtwo.entity.dto.ProjectUserQueryDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ProjectMemberMapper extends BaseMapper<ProjectMember> {

    List<ProjectUserQueryDTO> findProjectUsers(@Param("projectId") Integer projectId);

    void deleteUserIds(@Param("userIds") List<Integer> userIds);

}
